package 课堂作业api_day9;

import org.junit.Test;

import java.io.File;

public class FileDemo {
    @Test
    public void Test(){
        File file = new File("D:/aaa");
        getFileAll(file);
    }
    public void getFileAll(File file) {
        File[] files = file.listFiles();
        for (File f:files) {
            if(f.isDirectory()){
                getFileAll(f);
            }else {
                System.out.println(f);
            }
        }
    }
}
